package com.tjh.springbootapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.tjh.springbootapi.enums.*;

/**
 * Generated on 2020-03-22
 * 
 */
public class UserInfo implements Serializable {

    // ID - varchar(32)
    @TableId(value = "ID", type = IdType.UUID)
    private String id;

    // 用户名 - varchar(32)
    @TableField("USER_NAME")
    private String userName;

    // 身份证号 - varchar(18)
    @TableField("IDENTITY_NUMBER")
    private String identityNumber;

    // 性别（0-男；1-女） - tinyint(1)
    @TableField("GENDER")
    private GenderEnum gender;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIdentityNumber() {
        return identityNumber;
    }

    public void setIdentityNumber(String identityNumber) {
        this.identityNumber = identityNumber;
    }

    public GenderEnum getGender() {
        return gender;
    }

    public void setGender(GenderEnum gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
            "id=" + id +
            ", userName=" + userName +
            ", identityNumber=" + identityNumber +
            ", gender=" + gender +
        "}";
    }
}








